package com.gditt.string;

public class StringDemo {

	public static void main(String[] args) {
		String greeting = "123456";
		String s = greeting.substring(0, 3);
		System.out.println(s);
		String all = String.join("/", "H", "e", "l", "l", "o");
		System.out.println(all);
		greeting = greeting.substring(0, 3) + " is one two three";
		System.out.println(greeting);
	}

}
